﻿<!DOCTYPE html>
<html>
<head>
<title>@ViewBag.Title</title>
<meta charset="utf-8" />
@if (!String.IsNullOrEmpty(ViewBag.Keywords))
{
<meta name="Keywords" content="@ViewBag.Keywords" />
}
@if (!String.IsNullOrEmpty(ViewBag.Description))
{
<meta name="Description" content="@ViewBag.Description" />
}
<link href="@Url.Content("~/Content/pub.css")" rel="stylesheet" type="text/css" />
@RenderSection("Css", false)
<link rel="alternate" type="application/rss+xml" title="@ViewBag.Setup.SiteName" href="@Url.Action("RSS", "Article")" />
<!--[if lte IE 9]><script src="@Url.Content("~/Scripts/html5shiv.js")"></script><![endif]-->
</head>

<body>
<header id="header" class="header">
	<div class="boundary">
		<h1 class="logo"><a href="http://@ViewBag.Setup.SiteDomain"><img src="@Url.Content("~/Content/Images/logo.png")" alt="@ViewBag.Setup.SiteName" /></a></h1>
		<nav class="global-nav">
			<ul>
@{
	ViewBag.CategoryList.Insert(0, TidyBlog.Entity.Category.Home);
}
@foreach (var c in ViewBag.CategoryList)
{
				<li@Html.Raw(ViewBag.CurrentPosition != null && c.CategoryId == ViewBag.CurrentPosition.CategoryId ? " class=\"current\"" : String.Empty)><a href="@Url.Action("Index", "Article", new { id = c.CategoryId })">@c.CategoryName</a></li>
}
			</ul>
		</nav>
	</div>
</header>
<div class="body clearfix"><div class="boundary">@RenderBody()</div></div>
<footer id="footer" class="footer">
	<div class="boundary clearfix">
		<nav>
			当前位置：
			<span id="current-position" class="current-position">@(ViewBag.CurrentPosition != null ? ViewBag.CurrentPosition.CategoryName : "（无）")</span>
			<ul id="express-nav" class="express-nav">
@foreach (var c in ViewBag.CategoryList)
{
				<li@Html.Raw(ViewBag.CurrentPosition != null && c.CategoryId == ViewBag.CurrentPosition.CategoryId ? " class=\"current\"" : String.Empty)><a href="@Url.Action("Index", "Article", new { id = c.CategoryId })">@c.CategoryName</a></li>
}
			</ul>
		</nav>
@if (ViewBag.User != null)
{
			<div class="manage-info">
				@ViewBag.User.Nickname（<a href="@Url.Action("Index", "Manage_Home")" target="_blank">后台管理</a>&nbsp;&nbsp;<a href="@Url.Action("Logout", "User")">退出</a>）
				<a href="@Url.Action("List", "Manage_Comment")" target="_blank" id="comment-manage"><em>0</em> 条评论待审</a>
			</div>
}
		<div class="copyright">Copyright &copy; 2009-@DateTime.UtcNow.AddHours(ViewBag.Setup.TimeZone).ToString("yyyy") <a href="http://@ViewBag.Setup.SiteDomain">@ViewBag.Setup.SiteName</a></div>
	</div>
</footer>
<script src="@Url.Content("~/Scripts/lib/jraiser2.js")"></script>
<script>
jraiser.config({
	libPath: '@Url.Content("~/Scripts/lib/")',
	appPath: '@Url.Content("~/Scripts/app/")'
});
</script>
@RenderSection("Script", false)
<!--[if lte IE 6]>
<script src="@Url.Content("~/Scripts/jquery.js")"></script>
<script src="http://ieupgrade.heeroluo.net/ie-upgrade-warning.js"></script>
<![endif]-->
<!-- Execute in @ViewBag.ExecTime ms, @ViewBag.DbQueryCount queries -->
</body>
</html>